import Vue from 'vue'

export default [
  {
    path: '/account',
    component: () =>
      import(/* webpackChunkName: "account" */ `@/page/home.vue`),
    name: 'account',
    iconCls: 'el-icon-s-data',
    meta: {
      title: '帳戶設定',
      keepAlive: false
    },
    hiddenType: 5,
    excludeType: 4,
    sort: 98,
    children: [
      {
        path: 'changePwd',
        component: () =>
          import(/* webpackChunkName: "account" */ `@/page/account/changePassword.vue`),
        name: 'changePwd',
        meta: {
          title: '變更密碼'
        }
      },
      {
        path: 'group',
        component: () =>
          import(/* webpackChunkName: "account" */ `@/page/account/group.vue`),
        name: 'group',
        hiddenType: 1,
        meta: {
          title: '群組管理'
        }
      },
      {
        path: 'accountIndex',
        component: () =>
          import(/* webpackChunkName: "account" */ `@/page/account/index.vue`),
        name: 'accountIndex',
        meta: {
          title: '應用員及檢視員管理'
        },
        hiddenType: 1,
      },
    ]
  }
]
